//
//  UILabel+Extension.swift
//  HMWeibo
//
//  Created by 刘凡 on 15/10/14.
//  Copyright © 2015年 joyios. All rights reserved.
//

import UIKit

extension UILabel {
    
    /// 便利构造函数
    ///
    /// - parameter title:    title
    /// - parameter fontSize: fontSize
    /// - parameter color:    color
    ///
    /// - returns: UILabel
    convenience init(title: String, fontSize: CGFloat, color: UIColor) {
        self.init()
        
        text = title
        font = UIFont.systemFont(ofSize: fontSize)
        numberOfLines = 0
        textColor = color
        textAlignment = NSTextAlignment.center
    }
}
